﻿namespace Service.Core.Result
{
    /*******************
     * 
     * 调用方可以直接调用结果名称作为返回值
     * 
     * 
     */


    /// <summary>
    ///     处理结果集
    /// </summary>
    public enum ResultType
    {
        #region 初始 0 - 900

        /// <summary>
        ///     结果初始
        /// </summary>
        Init = 0,

        #endregion

        #region 通用逻辑处理  999-1010

        /// <summary>
        ///     系统错误
        /// </summary>
        Error = 999,

        /// <summary>
        ///     处理正常
        /// </summary>
        Success = 1000,

        /// <summary>
        ///     处理失败
        /// </summary>
        Fail = 1001,

        /// <summary>
        ///     目标没有找到
        /// </summary>
        TargetIsNotFound = 1002,

        /// <summary>
        ///     目标已经存在
        /// </summary>
        TargetIsFound = 1003,

        #endregion

        #region 参数验证  1100 - 1199

        /// <summary>
        ///     参数正确
        /// </summary>
        ParamIsSuccess = 1100,

        /// <summary>
        ///     参数为空
        /// </summary>
        ParamIsNull = 1101,

        /// <summary>
        ///     参数错误
        /// </summary>
        ParamIsError = 1102,

        /// <summary>
        ///     参数不合法
        /// </summary>
        ParamIsIllegal = 1103,

        #endregion

        #region 帐号管理 1200 - 1299

        /// <summary>
        ///     帐号为空
        /// </summary>
        AccountIsNull = 1201,

        /// <summary>
        ///     帐号不为空
        /// </summary>
        AccountIsNotNull = 1202,

        /// <summary>
        ///     密码错误
        /// </summary>
        AccountKeyIsError = 1203,


        /// <summary>
        ///     确认密码与密码不相符
        /// </summary>
        AccountConfirmPasswordIsError = 1204,

        /// <summary>
        ///     登录成功
        /// </summary>
        AccountLoginSuccess = 1205,

        /// <summary>
        ///     登录失败
        /// </summary>
        AccountLoginFaile = 1206,

        /// <summary>
        ///     帐号不合法
        /// </summary>
        AccountIsIllegal = 1207,

        /// <summary>
        ///     帐号锁定
        /// </summary>
        AccountIsLocked = 1208,

        /// <summary>
        ///     帐号注册成功
        /// </summary>
        AccountRegisterIsSuccess = 1209,

        /// <summary>
        ///     帐号密码修改成功
        /// </summary>
        AccountPasswordChangeIsSuccess = 1210,

        /// <summary>
        ///     帐号信息丢失
        /// </summary>
        AccountSessionIsLost = 1211,


        /// <summary>
        ///     密码找回邮件发送成功
        /// </summary>
        PwdEmailSendSuccess = 1212,

        /// <summary>
        ///     密码找回邮件发送失败
        /// </summary>
        PwdEmailSendFaile = 1213,

        /// <summary>
        ///     密码找回邮箱不存在
        /// </summary>
        PwdEmailIsNull = 1214,

        /// <summary>
        ///     密码找回Key不存在
        /// </summary>
        PwdEmailKeyIsNotFind = 1215,

        /// <summary>
        ///     密码找回Key过期
        /// </summary>
        PwdEmailKeyIsOutOfDate = 1216,

        /// <summary>
        ///     帐号邮箱已存在
        /// </summary>
        AccountEmailIsNotNull = 1217,

        /// <summary>
        ///     邀请码不存在
        /// </summary>
        RegCodeIsNull = 1218,

        /// <summary>
        ///     不能填写自己的邀请码
        /// </summary>
        RegCodeIsmine = 1219,

        /// <summary>
        ///     个人信息修改成功
        /// </summary>
        AccountChangeInfoIsSuccess = 1220,

        /// <summary>
        ///     已发送邮件至您的邮箱
        /// </summary>
        SendEmailSuccess = 1221,

        #endregion

        #region Filter 2100-2299

        //没有找到Userid
        /// <summary>
        ///     用户ID不存在
        /// </summary>
        FilterUseridIsNotFind = 2101,


        /// <summary>
        ///     没有权限这么做
        /// </summary>
        NoAppropriatePermission = 2102,

        #endregion

        #region 外部接口 2400-2599

        /// <summary>
        ///     外部接口返回结果：错误
        /// </summary>
        ExternalCallResultisError = 2401,

        /// <summary>
        ///     外部接口返回结果：成功
        /// </summary>
        ExternalCallResultisSuccess = 2402,

        #endregion

        #region 积分 2600-2799

        /// <summary>
        ///     不足
        /// </summary>
        PointIsInsufficient = 2601,

        #endregion

        #region 常用操作 3000-3299

        OperateAddIsSuccess = 3001,

        OperateDeleteIsSuccess = 3002,

        OperateUpdateIsSuccess = 3003,

        OperateQueryIsSuccess = 3004,

        #endregion

        #region LiveChat 3300-3499

        /// <summary>
        ///     在线
        /// </summary>
        Online = 3300,

        /// <summary>
        ///     离线
        /// </summary>
        Offline = 3301,

        #endregion

        #region Verify 3500-3699

        /// <summary>
        ///     校验成功
        /// </summary>
        VerifySuccess = 3510,

        /// <summary>
        ///     校验失败
        /// </summary>
        VerifyFaile = 3511

        #endregion
    }
}